9.8
CRITICAL CVSS 3.1
CVE-2022-42889
Apache Commons Text prior to 1.10.0 allows RCE when applied to untrusted input due to insecure interpolation defaults
Description

Apache Commons Text performs variable interpolation, allowing properties to be dynamically evaluated and expanded. The standard format for interpolation is "${prefix:name}", where "prefix" is used to locate an instance of org.apache.commons.text.lookup.StringLookup that performs the interpolation. Starting with version 1.5 and continuing through 1.9, the set of default Lookup instances included interpolators that could result in arbitrary code execution or contact with remote servers. These lookups are: - "script" - execute expressions using the JVM script execution engine (javax.script) - "dns" - resolve dns records - "url" - load values from urls, including from remote servers Applications using the interpolation defaults in the affected versions may be vulnerable to remote code execution or unintentional contact with remote servers if untrusted configuration values are used. Users are recommended to upgrade to Apache Commons Text 1.10.0, which disables the problematic interpolators by default.

INFO

Published Date :

Oct. 13, 2022, 1:15 p.m.

Last Modified :

Nov. 21, 2024, 7:25 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2022-42889 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Juniper security_threat_response_manager
2 Juniper jsa1500
3 Juniper jsa3500
4 Juniper jsa3800
5 Juniper jsa5500
6 Juniper jsa5800
7 Juniper jsa7500
8 Juniper jsa7800
1 Apache commons_text
1 Netapp bluexp
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 CRITICAL [email protected]
Solution
Upgrade Apache Commons Text to the latest version to address the variable interpolation vulnerability.
  • Upgrade to Apache Commons Text 1.10.0 or later.
  • Update the affected packages.
Public PoC/Exploit Available at Github

CVE-2022-42889 has a 174 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2022-42889.

URL Resource
http://packetstormsecurity.com/files/171003/OX-App-Suite-Cross-Site-Scripting-Server-Side-Request-Forgery.html Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/176650/Apache-Commons-Text-1.9-Remote-Code-Execution.html
http://seclists.org/fulldisclosure/2023/Feb/3 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/10/13/4 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/10/18/1 Mailing List Third Party Advisory
https://lists.apache.org/thread/n2bd4vdsgkqh2tm14l1wyc3jyol7s1om Mailing List Vendor Advisory
https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0022 Third Party Advisory
https://security.gentoo.org/glsa/202301-05 Third Party Advisory
https://security.netapp.com/advisory/ntap-20221020-0004/ Third Party Advisory
http://packetstormsecurity.com/files/171003/OX-App-Suite-Cross-Site-Scripting-Server-Side-Request-Forgery.html Third Party Advisory VDB Entry
http://packetstormsecurity.com/files/176650/Apache-Commons-Text-1.9-Remote-Code-Execution.html
http://seclists.org/fulldisclosure/2023/Feb/3 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/10/13/4 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/10/18/1 Mailing List Third Party Advisory
https://lists.apache.org/thread/n2bd4vdsgkqh2tm14l1wyc3jyol7s1om Mailing List Vendor Advisory
https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0022 Third Party Advisory
https://security.gentoo.org/glsa/202301-05 Third Party Advisory
https://security.netapp.com/advisory/ntap-20221020-0004/ Third Party Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-42889 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2022-42889 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

CWE-Bench benchmark runner suite for SmpL Security engine

Python

Updated: 1 day, 19 hours ago
0 stars 0 fork 0 watcher
Born at : May 24, 2026, 8:57 p.m. This repo has been linked 5 different CVEs too.

None

Kotlin

Updated: 3 days, 9 hours ago
0 stars 0 fork 0 watcher
Born at : May 23, 2026, 8:35 a.m. This repo has been linked 8 different CVEs too.

Demo Maven WAR application with known-vulnerable dependencies for Syft SBOM scanning and GHAS/Dependabot demonstrations

Java

Updated: 1 week ago
0 stars 0 fork 0 watcher
Born at : May 19, 2026, 5:57 p.m. This repo has been linked 6 different CVEs too.

Demo Maven WAR application with known-vulnerable dependencies for Syft SBOM scanning and GHAS/Dependabot demonstrations

Java

Updated: 1 week ago
0 stars 0 fork 0 watcher
Born at : May 19, 2026, 5:45 p.m. This repo has been linked 6 different CVEs too.

None

Dockerfile Java

Updated: 1 week, 1 day ago
0 stars 0 fork 0 watcher
Born at : May 18, 2026, 6:45 a.m. This repo has been linked 1 different CVEs too.

None

HTML Handlebars Shell C C++ Go Java JavaScript PHP Python

Updated: 1 week, 3 days ago
0 stars 0 fork 0 watcher
Born at : May 16, 2026, 3:57 a.m. This repo has been linked 33 different CVEs too.

Projeto do Hacka de 2026

Dockerfile Java Python

Updated: 5 days, 14 hours ago
0 stars 0 fork 0 watcher
Born at : May 13, 2026, 11:43 p.m. This repo has been linked 5 different CVEs too.

None

Makefile Python Java

Updated: 2 days, 3 hours ago
0 stars 0 fork 0 watcher
Born at : May 13, 2026, 6:29 p.m. This repo has been linked 1 different CVEs too.

None

Java

Updated: 2 weeks, 1 day ago
0 stars 0 fork 0 watcher
Born at : May 11, 2026, 5:35 a.m. This repo has been linked 11 different CVEs too.

Deliberately vulnerable Spring/Maven demo for VRA

Java

Updated: 2 weeks, 2 days ago
0 stars 0 fork 0 watcher
Born at : May 10, 2026, 12:20 p.m. This repo has been linked 7 different CVEs too.

None

JavaScript Java Kotlin Python

Updated: 1 week ago
0 stars 0 fork 0 watcher
Born at : May 9, 2026, 9:01 a.m. This repo has been linked 22 different CVEs too.

None

JavaScript Dockerfile Ruby

Updated: 1 week, 6 days ago
0 stars 0 fork 0 watcher
Born at : May 8, 2026, 4:54 a.m. This repo has been linked 17 different CVEs too.

CRAReady SBOM test fixture — Java/Maven app with Log4Shell (CVE-2021-44228), Spring4Shell, Text4Shell, and other critical CVEs

Java

Updated: 3 weeks, 3 days ago
0 stars 0 fork 0 watcher
Born at : May 2, 2026, 5:51 a.m. This repo has been linked 8 different CVEs too.

None

HCL Dockerfile Java Python

Updated: 3 weeks, 5 days ago
0 stars 0 fork 0 watcher
Born at : April 30, 2026, 3:40 p.m. This repo has been linked 11 different CVEs too.

None

Dockerfile Java

Updated: 1 week, 1 day ago
0 stars 0 fork 0 watcher
Born at : April 29, 2026, 5:48 a.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-42889 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-42889 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/171003/OX-App-Suite-Cross-Site-Scripting-Server-Side-Request-Forgery.html
    Added Reference http://packetstormsecurity.com/files/176650/Apache-Commons-Text-1.9-Remote-Code-Execution.html
    Added Reference http://seclists.org/fulldisclosure/2023/Feb/3
    Added Reference http://www.openwall.com/lists/oss-security/2022/10/13/4
    Added Reference http://www.openwall.com/lists/oss-security/2022/10/18/1
    Added Reference https://lists.apache.org/thread/n2bd4vdsgkqh2tm14l1wyc3jyol7s1om
    Added Reference https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0022
    Added Reference https://security.gentoo.org/glsa/202301-05
    Added Reference https://security.netapp.com/advisory/ntap-20221020-0004/
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Jan. 19, 2024

    Action Type Old Value New Value
    Added Reference Apache Software Foundation http://packetstormsecurity.com/files/176650/Apache-Commons-Text-1.9-Remote-Code-Execution.html [No types assigned]
  • Reanalysis by [email protected]

    Apr. 17, 2023

    Action Type Old Value New Value
    Changed Reference Type http://packetstormsecurity.com/files/171003/OX-App-Suite-Cross-Site-Scripting-Server-Side-Request-Forgery.html Third Party Advisory http://packetstormsecurity.com/files/171003/OX-App-Suite-Cross-Site-Scripting-Server-Side-Request-Forgery.html Third Party Advisory, VDB Entry
    Changed Reference Type http://seclists.org/fulldisclosure/2023/Feb/3 Third Party Advisory http://seclists.org/fulldisclosure/2023/Feb/3 Mailing List, Third Party Advisory
    Added CPE Configuration AND OR *cpe:2.3:a:juniper:security_threat_response_manager:*:*:*:*:*:*:*:* versions up to (excluding) 7.5.0 *cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:-:*:*:*:*:*:* *cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:up1:*:*:*:*:*:* *cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:up2:*:*:*:*:*:* *cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:up3:*:*:*:*:*:* OR cpe:2.3:h:juniper:jsa1500:-:*:*:*:*:*:*:* cpe:2.3:h:juniper:jsa3500:-:*:*:*:*:*:*:* cpe:2.3:h:juniper:jsa3800:-:*:*:*:*:*:*:* cpe:2.3:h:juniper:jsa5500:-:*:*:*:*:*:*:* cpe:2.3:h:juniper:jsa5800:-:*:*:*:*:*:*:* cpe:2.3:h:juniper:jsa7500:-:*:*:*:*:*:*:* cpe:2.3:h:juniper:jsa7800:-:*:*:*:*:*:*:*
  • Modified Analysis by [email protected]

    Mar. 01, 2023

    Action Type Old Value New Value
    Changed Reference Type http://packetstormsecurity.com/files/171003/OX-App-Suite-Cross-Site-Scripting-Server-Side-Request-Forgery.html No Types Assigned http://packetstormsecurity.com/files/171003/OX-App-Suite-Cross-Site-Scripting-Server-Side-Request-Forgery.html Third Party Advisory
    Changed Reference Type http://seclists.org/fulldisclosure/2023/Feb/3 No Types Assigned http://seclists.org/fulldisclosure/2023/Feb/3 Third Party Advisory
    Changed Reference Type https://security.gentoo.org/glsa/202301-05 No Types Assigned https://security.gentoo.org/glsa/202301-05 Third Party Advisory
  • CVE Modified by [email protected]

    Feb. 15, 2023

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/171003/OX-App-Suite-Cross-Site-Scripting-Server-Side-Request-Forgery.html [No Types Assigned]
  • CVE Modified by [email protected]

    Feb. 15, 2023

    Action Type Old Value New Value
    Added Reference http://seclists.org/fulldisclosure/2023/Feb/3 [No Types Assigned]
  • CVE Modified by [email protected]

    Jan. 11, 2023

    Action Type Old Value New Value
    Added Reference https://security.gentoo.org/glsa/202301-05 [No Types Assigned]
  • Modified Analysis by [email protected]

    Nov. 29, 2022

    Action Type Old Value New Value
    Changed Reference Type http://www.openwall.com/lists/oss-security/2022/10/18/1 No Types Assigned http://www.openwall.com/lists/oss-security/2022/10/18/1 Mailing List, Third Party Advisory
    Changed Reference Type https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0022 No Types Assigned https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0022 Third Party Advisory
    Changed Reference Type https://security.netapp.com/advisory/ntap-20221020-0004/ No Types Assigned https://security.netapp.com/advisory/ntap-20221020-0004/ Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:netapp:bluexp:-:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Oct. 22, 2022

    Action Type Old Value New Value
    Added Reference https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0022 [No Types Assigned]
  • CVE Modified by [email protected]

    Oct. 20, 2022

    Action Type Old Value New Value
    Added Reference https://security.netapp.com/advisory/ntap-20221020-0004/ [No Types Assigned]
  • CVE Modified by [email protected]

    Oct. 18, 2022

    Action Type Old Value New Value
    Added Reference http://www.openwall.com/lists/oss-security/2022/10/18/1 [No Types Assigned]
  • Initial Analysis by [email protected]

    Oct. 17, 2022

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type http://www.openwall.com/lists/oss-security/2022/10/13/4 No Types Assigned http://www.openwall.com/lists/oss-security/2022/10/13/4 Mailing List, Third Party Advisory
    Changed Reference Type https://lists.apache.org/thread/n2bd4vdsgkqh2tm14l1wyc3jyol7s1om No Types Assigned https://lists.apache.org/thread/n2bd4vdsgkqh2tm14l1wyc3jyol7s1om Mailing List, Vendor Advisory
    Added CWE NIST CWE-94
    Added CPE Configuration OR *cpe:2.3:a:apache:commons_text:*:*:*:*:*:*:*:* versions from (including) 1.5 up to (excluding) 1.10.0
  • CVE Modified by [email protected]

    Oct. 13, 2022

    Action Type Old Value New Value
    Added Reference http://www.openwall.com/lists/oss-security/2022/10/13/4 [No Types Assigned]
  • CVE Modified by [email protected]

    Oct. 13, 2022

    Action Type Old Value New Value
    Changed Description Apache Commons Text performs variable interpolation, allowing properties to be dynamically evaluated and expanded. The standard format for interpolation is "${prefix:name}", where "prefix" is used to locate an instance of org.apache.commons.text.lookup.StringLookup that performs the interpolation. Starting with version 1.5 and continuing through 1.9, the set of default Lookup instances included interpolators that could result in arbitrary code execution or contact with remote servers. These lookups are: - "script" - execute expressions using the JVM script execution engine (javax.script) - "dns" - resolve dns records - "url" - load values from urls, including from remote servers Applications using the interpolation defaults in the affected versions may be vulnerable to remote code execution or unintentional contact with remote servers if untrusted configuration values are used. Users are recommended to upgrade to Apache Commons Text 1.10.0, which disables the problematic interpolators by default. Apache Commons Text performs variable interpolation, allowing properties to be dynamically evaluated and expanded. The standard format for interpolation is "${prefix:name}", where "prefix" is used to locate an instance of org.apache.commons.text.lookup.StringLookup that performs the interpolation. Starting with version 1.5 and continuing through 1.9, the set of default Lookup instances included interpolators that could result in arbitrary code execution or contact with remote servers. These lookups are: - "script" - execute expressions using the JVM script execution engine (javax.script) - "dns" - resolve dns records - "url" - load values from urls, including from remote servers Applications using the interpolation defaults in the affected versions may be vulnerable to remote code execution or unintentional contact with remote servers if untrusted configuration values are used. Users are recommended to upgrade to Apache Commons Text 1.10.0, which disables the problematic interpolators by default.
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.